{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\vgonz\Dropbox\Pitt\OneDrive for Business\Dissertation - Vale\Paper 2 - Political-Economic Polarization\Replication\Log\1_1_Switching_US.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}29 Aug 2024, 15:36:15

{com}. do "C:\Users\vgonz\Dropbox\Pitt\OneDrive for Business\Dissertation - Vale\Paper 2 - Political-Economic Polarization\Replication\Do\1_1_Switching_US.do"
{txt}
{com}. *****************************************************************************
. *               Cleaning and Analyzing - Switching vote US                  *
. *                                                                                                                                           *
. * Author:                       Valentina Gonzalez-Rostani                                                      *
. * Contact:                      mag384@pitt.edu                                                                 *
. * Date:                         March 21 2021                                                                   *
. * Version:                      Stata 17                                                                        *
. *                                                                                                                                                       *
. *****************************************************************************
. /*
> This do-file:
>         * Processing of the data
>                 * Call the Data
>                 * Define variables
>                 * Save the data
>         * Load preapred data **line 794**
>         * Analysis and Descriptives: Export Tables &  Figure
> 
> Input: GSS data
>         - Data\Switching\GSS7218_R3.dta
> 
> Final output:
>         Cleaned data: 
>                 * "Data\GSS.dta" this data contains the relevant variables for the analysis.
>         Tables:
>                 * table A3: Switching Vote, IV - RTI, US [Table\USlong_2.tex]
>                 * table A5: Switching Vote (alternative definition), IV - RTI [Table\USStrict_2.tex]
>                 * table A6: Switching Vote, IV - Routine (dummy), US [Table\USdummy_2.tex]
>                 * table A1: Descriptive statistic: USA GSS 2016 vs 2012
>         Figure:
>             * Figure 3: The effect of exposure to automation on vote-switching. [US Part]  [Figure\US.gph]
> 
> 
> */
. 
. 
. ** Set directory
. cd "C:\Users\vgonz\Dropbox\Pitt\OneDrive for Business\Dissertation - Vale\Paper 2 - Political-Economic Polarization\Replication"
{res}C:\Users\vgonz\Dropbox\Pitt\OneDrive for Business\Dissertation - Vale\Paper 2 - Political-Economic Polarization\Replication
{txt}
{com}. 
. *##########################################
. * Processing of the data (alternatively skip and go to line 794)
. *##########################################
. {c -(}
. *##########################################
. * Calling the data
. *##########################################
. {c -(}
. * Clearing and allowing multiple variables
. * Set the directory
. * If re-running clear mata and clear matrix
. clear
. set maxvar 30000

. 
. * Calling the data
. use "Data\Switching\GSS7218_R3.dta", clear
. {c )-}
. *############################################
. * Creating Variables
. *############################################
. {c -(}
. ************************************************************************
. ********************* B. Demographic  **********************************
. ************************************************************************
. {c -(}
. * Generate a dummy variable for unemployment status
. gen unemployed = (wrkstat==4)
. 
. * Generate a dummy variable for female
. gen female=(sex==2)
. 
. * Generate a dummy variable for black race
. gen black = (race==2)
. 
. * Dummy for born outside the US
. gen foreign = .  // Initialize the variable 'foreign' with missing values
{txt}(64,814 missing values generated)
{com}. replace foreign=1 if born==2
{txt}(5,110 real changes made)
{com}. replace foreign=0 if born==1
{txt}(50,441 real changes made)
{com}. 
. * Dummy for nonreligion
. gen nonrelig=.
{txt}(64,814 missing values generated)
{com}. replace nonrelig=1 if relig==4
{txt}(7,797 real changes made)
{com}. replace nonrelig=0 if relig~=4 & relig~=.
{txt}(57,017 real changes made)
{com}. 
. {c )-}
. ************************************************************************
. ********************* C. Standarizing occupations **********************
. ************************************************************************
. {c -(}
. */ In this section I will standarize occupations. I follow Thewissen and Rueda (2019)  code, which was based on Harry Ganzeboom's correspondence file, who used ILO correspondence table.
. 
. * using code from Harry Ganzeboom, I convert occupations from ISCO-08 to ISCO-88. 
. * I am doing this conversion because the RTI is in 08 ISCO code. 
. gen iscoco = isco88
{txt}(3,902 missing values generated)
{com}. 
. */ Given that Goos et al (2014) code is designed for 2-digit. I create a new variable that will transform iscoco into a 2 digit variables. 
. 
. foreach var of varlist iscoco isco08 {c -(}
{txt}  2{com}. gen str_`var'=string(`var')
{txt}  3{com}. replace str_`var'="0100" if str_`var'=="100"
{txt}  4{com}. {c )-}
{txt}(0 real changes made)
(0 real changes made)
{com}. sum iscoco if str_iscoco=="0100"

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}iscoco {c |}{res}          0
{com}. 
. 
. foreach x in iscoco {c -(}
{txt}  2{com}. gen `x'2 = substr(str_`x',1,2) if `x'<9334
{txt}  3{com}. replace `x'2 = "." if `x'2==""
{txt}  4{com}. {c )-}
{txt}(4,765 missing values generated)
(4,765 real changes made)
{com}. 
. drop str_*
. 
. destring iscoco2, replace
{txt}iscoco2: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(4765 missing values generated)
{res}{com}. 
. label var iscoco2 "ISCO88 at the 2-digit"
. 
. * Labels Iscoco
. {c -(}
. gen iscoco2n="."
. replace iscoco2n="Legislators and senior officials" if iscoco2==11
{txt}variable {bf}{res}iscoco2n{sf}{txt} was {bf}{res}str1{sf}{txt} now {bf}{res}str32{sf}
{txt}(469 real changes made)
{com}.         replace iscoco2n="Corporate managers" if iscoco2==12
{txt}(6,362 real changes made)
{com}.         replace iscoco2n="General managers" if iscoco2==13
{txt}(1,383 real changes made)
{com}.         replace iscoco2n="Physical, mathematical and engineering science professionals" if iscoco2==21
{txt}variable {bf}{res}iscoco2n{sf}{txt} was {bf}{res}str32{sf}{txt} now {bf}{res}str60{sf}
{txt}(2,027 real changes made)
{com}.         replace iscoco2n="Life science and health professionals" if iscoco2==22
{txt}(1,464 real changes made)
{com}.         replace iscoco2n="Teaching professionals" if iscoco2==23
{txt}(3,200 real changes made)
{com}.         replace iscoco2n="Other professionals" if iscoco2==24
{txt}(3,113 real changes made)
{com}.         replace iscoco2n="Physical and engineering science associate professionals" if iscoco2==31
{txt}(1,492 real changes made)
{com}.         replace iscoco2n="Life science and health associate professionals" if iscoco2==32
{txt}(2,939 real changes made)
{com}.         replace iscoco2n="Teaching associate professionals" if iscoco2==33
{txt}(365 real changes made)
{com}.         replace iscoco2n="Other associate professionals" if iscoco2==34
{txt}(3,500 real changes made)
{com}.         replace iscoco2n="Office clerks" if iscoco2==41
{txt}(7,305 real changes made)
{com}.         replace iscoco2n="Customer services clerks" if iscoco2==42
{txt}(2,000 real changes made)
{com}.         replace iscoco2n="Personal and protective services workers" if iscoco2==51
{txt}(5,200 real changes made)
{com}.         replace iscoco2n="Models, salespersons and demonstrators" if iscoco2==52
{txt}(1,737 real changes made)
{com}.         replace iscoco2n="Market-oriented skilled agricultural and fishery workers" if iscoco2==61
{txt}(490 real changes made)
{com}.         replace iscoco2n="Subsistence agricultural and fishery workers" if iscoco2==62
{txt}(0 real changes made)
{com}.         replace iscoco2n="Extraction and building trades workers" if iscoco2==71
{txt}(1,837 real changes made)
{com}.         replace iscoco2n="Metal, machinery and related trades workers" if iscoco2==72
{txt}(3,409 real changes made)
{com}.         replace iscoco2n="Precision, handicraft, printing and related trades workers" if iscoco2==73
{txt}(235 real changes made)
{com}.         replace iscoco2n="Other craft and related trades workers" if iscoco2==74
{txt}(602 real changes made)
{com}.         replace iscoco2n="Stationary-plant and related operators" if iscoco2==81
{txt}(505 real changes made)
{com}.         replace iscoco2n="Machine operators and assemblers" if iscoco2==82
{txt}(2,820 real changes made)
{com}.         replace iscoco2n="Drivers and mobile-plant operators" if iscoco2==83
{txt}(2,096 real changes made)
{com}.         replace iscoco2n="Sales and services elementary occupations" if iscoco2==91
{txt}(2,876 real changes made)
{com}.         replace iscoco2n="Agricultural, fishery and related labourers" if iscoco2==92
{txt}(435 real changes made)
{com}.         replace iscoco2n="Labourers in mining, construction, manufacturing and transport" if iscoco2==93
{txt}variable {bf}{res}iscoco2n{sf}{txt} was {bf}{res}str60{sf}{txt} now {bf}{res}str62{sf}
{txt}(1,639 real changes made)
{com}.         replace iscoco2n="Armed forces" if iscoco2==01
{txt}(0 real changes made)
{com}. label var iscoco2n "Names of iscoco2 coding"
. {c )-}
. 
. 
. 
. 
. 
. ************************************************************************
. ********************* Exposure to automation ***************************
. ************************************************************************
. {c -(}
. ************************************************************************
. * 1. Goos et al.(2014)
. ************************************************************************
. {c -(}
. ** These lines include the routinisation and offshoring indices at the 2-digit level from Goos et al. (2014)
. 
. */ The idea is that for each occupation (at the 2-digit level) one risk is assigned. The weak part of this index is that it treats as the same the last 2-digit of the ISCO.
. * In other words, ISCO has 4 digit, but goos et al only consider the first 2 digit, therefore there is no differentiation among occupations that differ in the last 2 digit. 
. gen rti=.
{txt}(64,814 missing values generated)
{com}. 
. {c -(}
. replace rti=-0.75 if iscoco2==12
{txt}(6,362 real changes made)
{com}. replace rti=-0.82 if iscoco2==21
{txt}(2,027 real changes made)
{com}. replace rti=-1.00 if iscoco2==22
{txt}(1,464 real changes made)
{com}. replace rti=-0.73 if iscoco2==24
{txt}(3,113 real changes made)
{com}. replace rti=-1.52 if iscoco2==13
{txt}(1,383 real changes made)
{com}. replace rti=-0.40 if iscoco2==31
{txt}(1,492 real changes made)
{com}. replace rti=-0.44 if iscoco2==34
{txt}(3,500 real changes made)
{com}. replace rti=-0.33 if iscoco2==32
{txt}(2,939 real changes made)
{com}. 
. replace rti=0.32 if iscoco2==81
{txt}(505 real changes made)
{com}. replace rti=0.46 if iscoco2==72
{txt}(3,409 real changes made)
{com}. replace rti=-1.50 if iscoco2==83
{txt}(2,096 real changes made)
{com}. replace rti=2.24 if iscoco2==41
{txt}(7,305 real changes made)
{com}. replace rti=1.59 if iscoco2==73
{txt}(235 real changes made)
{com}. replace rti=-0.19 if iscoco2==71
{txt}(1,837 real changes made)
{com}. replace rti=1.41 if iscoco2==42
{txt}(2,000 real changes made)
{com}. replace rti=0.49 if iscoco2==82
{txt}(2,820 real changes made)
{com}. replace rti=1.24 if iscoco2==74
{txt}(602 real changes made)
{com}. 
. replace rti=0.45 if iscoco2==93
{txt}(1,639 real changes made)
{com}. replace rti=-0.60 if iscoco2==51
{txt}(5,200 real changes made)
{com}. replace rti=0.05 if iscoco2==52
{txt}(1,737 real changes made)
{com}. replace rti=0.03 if iscoco2==91
{txt}(2,876 real changes made)
{com}. {c )-}
. label var rti "RTI index"
. 
. {c )-}
. ************************************************************************
. ***** 2. Oesch (2006) and Kitschelt and Rehm (2014) classification *****
. ************************************************************************
. {c -(}
. *Now is the same, but using Oesch (2006) and Kitschelt and Rehm (2014) classification
. 
. */  Oesch (2006) develops the bases of a new class schema that partly shifts its focus from hierarchical divisions to horizontal cleavages. The idea is  that the middle class is not conceptualized as a unitary grouping and the manual/non-manual divide is not used as a decisive class boundary. 
. */ The emphasis is put on differences in marketable skills and the work logic. 
. 
. // What is the logic? 
. */Logic of task structures: t1 organizational (taskorg), t2 technical (tasktech), and t3 interpersonal (taskinter)
. */Logic of authority: a1 professional (authprof), a2 associate professional (authassoc), a3 skilled routine (authskil) a4 unskilled routine (authunsk)
. */Leads to 3*4 groups, in regressions of K&R combined to 4 groups (skilled+unskilled routine all tasks; prof+assoc prof for 3 tasks separately)
. 
. * Code from Thewissen and Rueda  (2019)
. {c -(}
. */t1a1: Higher grade managers
. gen t1a1=1 if iscoco>=1000 & iscoco<=1251 | iscoco>=2410 & iscoco<=2419 | inlist(iscoco,2441,2470)
{txt}(57,277 missing values generated)
{com}. label var t1a1 "Higher grade managers"
. 
. */t1a2: Associate managers
. gen t1a2=1 if iscoco>=1252 & iscoco<=1319 | iscoco>=3410 & iscoco<=3449 | inlist(iscoco,3452)
{txt}(60,438 missing values generated)
{com}. label var t1a2 "Associate managers"
. 
. */t1a3: Skilled office
. gen t1a3=1 if iscoco>=4000 & iscoco<=4112 | iscoco>=4114 & iscoco<=4141 | inlist(iscoco,4143) | iscoco>=4190 & iscoco<=4210 | iscoco>=4213 & iscoco<=4221
{txt}(57,961 missing values generated)
{com}. label var t1a3 "Skilled office"
. 
. */t1a4: Routine office
. gen t1a4=1 if inlist(iscoco,4113,4142,4144) | iscoco>=4211 & iscoco<=4212 | iscoco>=4222 & iscoco<=4223
{txt}(62,362 missing values generated)
{com}. label var t1a4 "Routine office"
. 
. */t2a1: Technical experts
. gen t2a1=1 if iscoco>=2100 & iscoco<=2213
{txt}(62,644 missing values generated)
{com}. label var t2a1 "Technical experts"
. 
. */t2a2: Technicians
. gen t2a2=1 if iscoco>=3100 & iscoco<=3213 | inlist(iscoco,3471)
{txt}(62,754 missing values generated)
{com}. label var t2a2 "Technicians"
. 
. */t2a3: Skilled crafts
. gen t2a3=1 if inlist(iscoco,110,8311,8324,8333) | iscoco>=7120 & iscoco<=7142 | iscoco>=7200 & iscoco<=7233 | iscoco>=7240 & iscoco<=7423 | iscoco>=7430 & iscoco<=7520
{txt}(57,658 missing values generated)
{com}. label var t2a3 "Skilled crafts"
. 
. */t2a4: Routine operatives/agriculture
. gen t2a4=1 if inlist(iscoco,7143, 7234, 7424, 8312) | iscoco>=7100 & iscoco<=7113 | iscoco>=7129 & iscoco<=7130 | iscoco>=8000 & iscoco<=8310 | iscoco>=8334 & iscoco<=8400 | iscoco>=9160 & iscoco<=9162 | iscoco>=9300 & iscoco<=9333
{txt}(59,418 missing values generated)
{com}. replace t2a4=1 if iscoco>=6010 & iscoco<=6210 | iscoco>=8330 & iscoco<=8332 | iscoco>=9200 & iscoco<=9213
{txt}(1,152 real changes made)
{com}. label var t2a4 "Routine operatives/agriculture"
. 
. */t3a1: Socio-cultural professionals
. gen t3a1=1 if inlist(iscoco, 2359, 2445, 2451, 2460) | iscoco>=2220 & iscoco<=2323 | iscoco>=2350 & iscoco<=2351 |iscoco>=2420 & iscoco<=2440 | iscoco>=2442 & iscoco<=2443
{txt}(60,951 missing values generated)
{com}. label var t3a1 "Socio-cultural professionals"
. 
. */t3a2: Socio-cultural semi-professionals
. gen t3a2=1 if inlist(iscoco,2352, 2444, 3220, 3226) | iscoco>=2330 & iscoco<=2340 | iscoco>=2446 & iscoco<=2450 | iscoco>=2452 & iscoco<=2455 | iscoco>=3222 & iscoco<=3224 | iscoco>=3229 & iscoco<=3232 | iscoco>=3240 & iscoco<=3400 | iscoco>=3450 & iscoco<=3451 | iscoco>=3460 & iscoco<=3470 | iscoco>=3472 & iscoco<=3480
{txt}(59,364 missing values generated)
{com}. label var t3a2 "Socio-cultural semi-professionals"
. 
. */t3a3: Skilled service
. gen t3a3=1 if inlist(iscoco, 3221, 3225, 5122, 5141, 5143, 8323) | iscoco>=3227 & iscoco<=3228 | iscoco>=5110 & iscoco<=5113 | iscoco>=5150 & iscoco<=5163 | iscoco>=5200 & iscoco<=5210
{txt}(61,772 missing values generated)
{com}. label var t3a3 "Skilled service"
. 
. */t3a4: Routine service
. gen t3a4=1 if inlist(iscoco,5142, 5149, 5169) | iscoco>=5120 & iscoco<=5121 | iscoco>=5123 & iscoco<=5130 | iscoco>=5131 & iscoco<=5140 | iscoco>=5220 & iscoco<=5230 | iscoco>=8320 & iscoco<=8322 | iscoco>=9100 & iscoco<=9153
{txt}(56,203 missing values generated)
{com}. label var t3a4 "Routine service"
. 
. 
. forvalues i=1(1)3 {c -(}
{txt}  2{com}.         gen t`i'=1 if t`i'a1==1 | t`i'a2==1  | t`i'a3==1 | t`i'a4==1
{txt}  3{com}.         {c )-}
{txt}(43,596 missing values generated)
(46,981 missing values generated)
(43,848 missing values generated)
{com}. list t1-t3 if t1==t2 & t2==t3 & t1==t3 & t1~=.
. replace t1=0 if t2==1 | t3==1
{txt}(38,799 real changes made)
{com}. replace t2=0 if t1==1 | t3==1
{txt}(42,184 real changes made)
{com}. replace t3=0 if t1==1 | t2==1
{txt}(39,051 real changes made)
{com}. 
. label var t1 "Organisational task structure (t1a1, 2, 3, or 4==1)"
. label var t2 "Technical task structure (t2a1, 2, 3, or 4==1)"
. label var t3 "Interpersonal task structure (t3a1, 2, 3, or 4==1)"
. 
. forvalues i=1(1)4 {c -(}
{txt}  2{com}.         gen a`i'=1 if t1a`i'==1 | t2a`i'==1  | t3a`i'==1
{txt}  3{com}.         {c )-}
{txt}(51,244 missing values generated)
(52,928 missing values generated)
(47,763 missing values generated)
(47,203 missing values generated)
{com}. replace a1=0 if a2==1 | a3==1 | a4==1
{txt}(46,447 real changes made)
{com}. replace a2=0 if a1==1 | a3==1 | a4==1
{txt}(48,131 real changes made)
{com}. replace a3=0 if a1==1 | a2==1 | a4==1
{txt}(43,067 real changes made)
{com}. replace a4=0 if a1==1 | a2==1 | a3==1
{txt}(42,406 real changes made)
{com}. 
. label var a1 "Professional authority (t1a1, t2a1, or t3a1==1)"
. label var a2 "Assoc prof authority (t1a2, t2a2, or t3a2==1)"
. label var a3 "Skilled routine authority (t1a3, t2a3, or t3a3==1)"
. label var a4 "Unskilled routine authority (t1a4, t2a4, or t3a4==1)"
. 
. gen check = a1+a2+a3+a4
{txt}(4,797 missing values generated)
{com}. sum check

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}check {c |}{res}     60,017           1           0          1          1
{com}. drop check
. 
. gen c1=1 if t1a1==1 | t1a2==1
{txt}(52,901 missing values generated)
{com}. gen c2=1 if t2a1==1 | t2a2==1
{txt}(60,584 missing values generated)
{com}. gen c3=1 if t3a1==1 | t3a2==1
{txt}(55,501 missing values generated)
{com}. gen c4=1 if t1a3==1 | t1a4==1 | t2a3==1 | t2a4==1 | t3a3==1 | t3a4==1
{txt}(30,253 missing values generated)
{com}. 
. replace c1=0 if c2==1 | c3==1 | c4==1
{txt}(48,104 real changes made)
{com}. replace c2=0 if c1==1 | c3==1 | c4==1
{txt}(55,787 real changes made)
{com}. replace c3=0 if c1==1 | c2==1 | c4==1
{txt}(50,704 real changes made)
{com}. replace c4=0 if c1==1 | c2==1 | c3==1
{txt}(25,456 real changes made)
{com}. 
. label var c1 "Skilled organisational (t1a1 or t1a2==1)"
. label var c2 "Skilled technical (t2a1 or t2a2==1)"
. label var c3 "Skilled interpersonal (t3a1 or t3a2==1)"
. label var c4 "Unskilled routine (t1a3, t1a4, t2a3, t2a4, t3a3, or t3a4==1)"
. 
. gen check = c1+c2+c3+c4
{txt}(4,797 missing values generated)
{com}. sum check

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}check {c |}{res}     60,017           1           0          1          1
{com}. drop check
. {c )-}
. {c )-}
. *********************************************************************
. ***** 3. Offshoring index from Walter (2017), based on Blinder*******
. *********************************************************************
. {c -(}
. */ Stefanie Walter (2017) provides the code for offshorability based on Blinder. It uses ISCO with 4 digits. 
. 
. gen offshwalt=.
{txt}(64,814 missing values generated)
{com}. label var offshwalt "Offshoring Potential (Blinder) from Walter"
. 
. 
. *4-digit ISCO-code
.  * Coding is based on the classification developed in Blinder, Alan. 2007. "How Many U.S. Jobs Might Be Offshorable." CEPS Working Paper No. 142.
. * NOTE: all professions not listed by Blinder are coded as not offshorable (value 0)
. * Unlike Goos et al, Walter considers the 4 digits. 
. {c -(}
. replace offshwalt=0 if iscoco<.
{txt}(60,912 real changes made)
{com}. replace offshwalt=49 if iscoco==1142
{txt}(0 real changes made)
{com}. replace offshwalt=55 if iscoco==1222
{txt}(0 real changes made)
{com}. replace offshwalt=28 if iscoco==1226
{txt}(132 real changes made)
{com}. replace offshwalt=55 if iscoco==1228
{txt}(0 real changes made)
{com}. replace offshwalt=83 if iscoco==1231
{txt}(385 real changes made)
{com}. replace offshwalt=49 if iscoco==1232
{txt}(98 real changes made)
{com}. replace offshwalt=40 if iscoco==1233
{txt}(1,794 real changes made)
{com}. replace offshwalt=53 if iscoco==1234
{txt}(63 real changes made)
{com}. replace offshwalt=49 if iscoco==1235
{txt}(152 real changes made)
{com}. replace offshwalt=55 if iscoco==1236
{txt}(92 real changes made)
{com}. replace offshwalt=55 if iscoco==1237
{txt}(5 real changes made)
{com}. replace offshwalt=55 if iscoco==1311
{txt}(27 real changes made)
{com}. replace offshwalt=55 if iscoco==1312
{txt}(0 real changes made)
{com}. replace offshwalt=55 if iscoco==1313
{txt}(280 real changes made)
{com}. replace offshwalt=55 if iscoco==1314
{txt}(0 real changes made)
{com}. replace offshwalt=55 if iscoco==1315
{txt}(57 real changes made)
{com}. replace offshwalt=48 if iscoco==1316
{txt}(0 real changes made)
{com}. replace offshwalt=52 if iscoco==1317
{txt}(0 real changes made)
{com}. replace offshwalt=55 if iscoco==1318
{txt}(0 real changes made)
{com}. replace offshwalt=55 if iscoco==1319
{txt}(1,019 real changes made)
{com}. replace offshwalt=66 if iscoco==2111
{txt}(6 real changes made)
{com}. replace offshwalt=74 if iscoco==2112
{txt}(2 real changes made)
{com}. replace offshwalt=66 if iscoco==2113
{txt}(56 real changes made)
{com}. replace offshwalt=66 if iscoco==2114
{txt}(0 real changes made)
{com}. replace offshwalt=89 if iscoco==2121
{txt}(44 real changes made)
{com}. replace offshwalt=96 if iscoco==2122
{txt}(10 real changes made)
{com}. replace offshwalt=83 if iscoco==2131
{txt}(614 real changes made)
{com}. replace offshwalt=90 if iscoco==2139
{txt}(0 real changes made)
{com}. replace offshwalt=25 if iscoco==2141
{txt}(162 real changes made)
{com}. replace offshwalt=64 if iscoco==2143
{txt}(160 real changes made)
{com}. replace offshwalt=74 if iscoco==2144
{txt}(51 real changes made)
{com}. replace offshwalt=72 if iscoco==2146
{txt}(38 real changes made)
{com}. replace offshwalt=69 if iscoco==2147
{txt}(23 real changes made)
{com}. replace offshwalt=86 if iscoco==2148
{txt}(18 real changes made)
{com}. replace offshwalt=71 if iscoco==2149
{txt}(383 real changes made)
{com}. replace offshwalt=81 if iscoco==2211
{txt}(108 real changes made)
{com}. replace offshwalt=83 if iscoco==2212
{txt}(1 real change made)
{com}. replace offshwalt=72 if iscoco==2411
{txt}(602 real changes made)
{com}. replace offshwalt=50 if iscoco==2419
{txt}(260 real changes made)
{com}. replace offshwalt=74 if iscoco==2421
{txt}(285 real changes made)
{com}. replace offshwalt=67 if iscoco==2444
{txt}(26 real changes made)
{com}. replace offshwalt=90 if iscoco==2451
{txt}(210 real changes made)
{com}. replace offshwalt=78 if iscoco==2452
{txt}(134 real changes made)
{com}. replace offshwalt=25 if iscoco==2453
{txt}(103 real changes made)
{com}. replace offshwalt=48 if iscoco==2455
{txt}(85 real changes made)
{com}. replace offshwalt=47 if iscoco==3111
{txt}(66 real changes made)
{com}. replace offshwalt=47 if iscoco==3113
{txt}(0 real changes made)
{com}. replace offshwalt=47 if iscoco==3114
{txt}(2 real changes made)
{com}. replace offshwalt=72 if iscoco==3115
{txt}(11 real changes made)
{com}. replace offshwalt=47 if iscoco==3116
{txt}(0 real changes made)
{com}. replace offshwalt=94 if iscoco==3118
{txt}(95 real changes made)
{com}. replace offshwalt=54 if iscoco==3119
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==3121
{txt}(119 real changes made)
{com}. replace offshwalt=84 if iscoco==3122
{txt}(118 real changes made)
{com}. replace offshwalt=68 if iscoco==3123
{txt}(0 real changes made)
{com}. replace offshwalt=36 if iscoco==3131
{txt}(80 real changes made)
{com}. replace offshwalt=36 if iscoco==3132
{txt}(53 real changes made)
{com}. replace offshwalt=46 if iscoco==3133
{txt}(113 real changes made)
{com}. replace offshwalt=34 if iscoco==3139
{txt}(0 real changes made)
{com}. replace offshwalt=52 if iscoco==3141
{txt}(3 real changes made)
{com}. replace offshwalt=60 if iscoco==3152
{txt}(536 real changes made)
{com}. replace offshwalt=55 if iscoco==3211
{txt}(281 real changes made)
{com}. replace offshwalt=55 if iscoco==3212
{txt}(20 real changes made)
{com}. replace offshwalt=44 if iscoco==3213
{txt}(0 real changes made)
{com}. replace offshwalt=32 if iscoco==3228
{txt}(0 real changes made)
{com}. replace offshwalt=51 if iscoco==3411
{txt}(96 real changes made)
{com}. replace offshwalt=85 if iscoco==3412
{txt}(289 real changes made)
{com}. replace offshwalt=50 if iscoco==3414
{txt}(0 real changes made)
{com}. replace offshwalt=55 if iscoco==3416
{txt}(200 real changes made)
{com}. replace offshwalt=59 if iscoco==3419
{txt}(0 real changes made)
{com}. replace offshwalt=51 if iscoco==3421
{txt}(0 real changes made)
{com}. replace offshwalt=48 if iscoco==3422
{txt}(8 real changes made)
{com}. replace offshwalt=38 if iscoco==3431
{txt}(0 real changes made)
{com}. replace offshwalt=51 if iscoco==3432
{txt}(423 real changes made)
{com}. replace offshwalt=84 if iscoco==3433
{txt}(0 real changes made)
{com}. replace offshwalt=84 if iscoco==3434
{txt}(25 real changes made)
{com}. replace offshwalt=54 if iscoco==3439
{txt}(0 real changes made)
{com}. replace offshwalt=100 if iscoco==3442
{txt}(43 real changes made)
{com}. replace offshwalt=85 if iscoco==3471
{txt}(267 real changes made)
{com}. replace offshwalt=30 if iscoco==3472
{txt}(21 real changes made)
{com}. replace offshwalt=95 if iscoco==4111
{txt}(525 real changes made)
{com}. replace offshwalt=94 if iscoco==4112
{txt}(0 real changes made)
{com}. replace offshwalt=100 if iscoco==4113
{txt}(223 real changes made)
{com}. replace offshwalt=71 if iscoco==4114
{txt}(187 real changes made)
{com}. replace offshwalt=38 if iscoco==4115
{txt}(2,563 real changes made)
{com}. replace offshwalt=84 if iscoco==4121
{txt}(1,043 real changes made)
{com}. replace offshwalt=54 if iscoco==4122
{txt}(121 real changes made)
{com}. replace offshwalt=31 if iscoco==4131
{txt}(804 real changes made)
{com}. replace offshwalt=67 if iscoco==4132
{txt}(137 real changes made)
{com}. replace offshwalt=67 if iscoco==4133
{txt}(103 real changes made)
{com}. replace offshwalt=46 if iscoco==4141
{txt}(185 real changes made)
{com}. replace offshwalt=26 if iscoco==4142
{txt}(391 real changes made)
{com}. replace offshwalt=95 if iscoco==4143
{txt}(17 real changes made)
{com}. replace offshwalt=54 if iscoco==4144
{txt}(0 real changes made)
{com}. replace offshwalt=54 if iscoco==4190
{txt}(337 real changes made)
{com}. replace offshwalt=94 if iscoco==4211
{txt}(957 real changes made)
{com}. replace offshwalt=54 if iscoco==4214
{txt}(0 real changes made)
{com}. replace offshwalt=65 if iscoco==4215
{txt}(54 real changes made)
{com}. replace offshwalt=72 if iscoco==4221
{txt}(60 real changes made)
{com}. replace offshwalt=54 if iscoco==4222
{txt}(422 real changes made)
{com}. replace offshwalt=50 if iscoco==4223
{txt}(252 real changes made)
{com}. replace offshwalt=86 if iscoco==5113
{txt}(10 real changes made)
{com}. replace offshwalt=59 if iscoco==6142
{txt}(0 real changes made)
{com}. replace offshwalt=36 if iscoco==7111
{txt}(12 real changes made)
{com}. replace offshwalt=35 if iscoco==7112
{txt}(13 real changes made)
{com}. replace offshwalt=36 if iscoco==7113
{txt}(0 real changes made)
{com}. replace offshwalt=65 if iscoco==7211
{txt}(0 real changes made)
{com}. replace offshwalt=69 if iscoco==7212
{txt}(342 real changes made)
{com}. replace offshwalt=70 if iscoco==7213
{txt}(94 real changes made)
{com}. replace offshwalt=70 if iscoco==7222
{txt}(318 real changes made)
{com}. replace offshwalt=68 if iscoco==7223
{txt}(87 real changes made)
{com}. replace offshwalt=68 if iscoco==7224
{txt}(8 real changes made)
{com}. replace offshwalt=26 if iscoco==7311
{txt}(32 real changes made)
{com}. replace offshwalt=64 if iscoco==7313
{txt}(28 real changes made)
{com}. replace offshwalt=69 if iscoco==7321
{txt}(0 real changes made)
{com}. replace offshwalt=69 if iscoco==7322
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==7323
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==7324
{txt}(94 real changes made)
{com}. replace offshwalt=60 if iscoco==7331
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==7332
{txt}(0 real changes made)
{com}. replace offshwalt=59 if iscoco==7341
{txt}(57 real changes made)
{com}. replace offshwalt=59 if iscoco==7342
{txt}(0 real changes made)
{com}. replace offshwalt=59 if iscoco==7343
{txt}(7 real changes made)
{com}. replace offshwalt=34 if iscoco==7344
{txt}(0 real changes made)
{com}. replace offshwalt=59 if iscoco==7345
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==7346
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==7413
{txt}(0 real changes made)
{com}. replace offshwalt=27 if iscoco==7414
{txt}(0 real changes made)
{com}. replace offshwalt=55 if iscoco==7415
{txt}(44 real changes made)
{com}. replace offshwalt=43 if iscoco==7421
{txt}(0 real changes made)
{com}. replace offshwalt=57 if iscoco==7422
{txt}(72 real changes made)
{com}. replace offshwalt=57 if iscoco==7423
{txt}(0 real changes made)
{com}. replace offshwalt=66 if iscoco==7424
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==7431
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==7432
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==7433
{txt}(128 real changes made)
{com}. replace offshwalt=73 if iscoco==7434
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==7435
{txt}(64 real changes made)
{com}. replace offshwalt=75 if iscoco==7436
{txt}(0 real changes made)
{com}. replace offshwalt=57 if iscoco==7437
{txt}(39 real changes made)
{com}. replace offshwalt=75 if iscoco==7441
{txt}(0 real changes made)
{com}. replace offshwalt=72 if iscoco==7442
{txt}(16 real changes made)
{com}. replace offshwalt=36 if iscoco==8111
{txt}(69 real changes made)
{com}. replace offshwalt=36 if iscoco==8112
{txt}(0 real changes made)
{com}. replace offshwalt=36 if iscoco==8113
{txt}(30 real changes made)
{com}. replace offshwalt=59 if iscoco==8121
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8122
{txt}(39 real changes made)
{com}. replace offshwalt=70 if iscoco==8123
{txt}(10 real changes made)
{com}. replace offshwalt=68 if iscoco==8124
{txt}(0 real changes made)
{com}. replace offshwalt=69 if iscoco==8131
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8139
{txt}(0 real changes made)
{com}. replace offshwalt=57 if iscoco==8141
{txt}(77 real changes made)
{com}. replace offshwalt=68 if iscoco==8142
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8143
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8151
{txt}(61 real changes made)
{com}. replace offshwalt=70 if iscoco==8152
{txt}(51 real changes made)
{com}. replace offshwalt=68 if iscoco==8153
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8154
{txt}(0 real changes made)
{com}. replace offshwalt=29 if iscoco==8155
{txt}(17 real changes made)
{com}. replace offshwalt=68 if iscoco==8159
{txt}(0 real changes made)
{com}. replace offshwalt=42 if iscoco==8161
{txt}(14 real changes made)
{com}. replace offshwalt=55 if iscoco==8162
{txt}(78 real changes made)
{com}. replace offshwalt=29 if iscoco==8163
{txt}(27 real changes made)
{com}. replace offshwalt=64 if iscoco==8171
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8172
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8211
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8212
{txt}(13 real changes made)
{com}. replace offshwalt=68 if iscoco==8221
{txt}(41 real changes made)
{com}. replace offshwalt=35 if iscoco==8222
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8223
{txt}(8 real changes made)
{com}. replace offshwalt=41 if iscoco==8224
{txt}(42 real changes made)
{com}. replace offshwalt=29 if iscoco==8229
{txt}(0 real changes made)
{com}. replace offshwalt=69 if iscoco==8231
{txt}(11 real changes made)
{com}. replace offshwalt=68 if iscoco==8232
{txt}(186 real changes made)
{com}. replace offshwalt=57 if iscoco==8240
{txt}(0 real changes made)
{com}. replace offshwalt=58 if iscoco==8251
{txt}(209 real changes made)
{com}. replace offshwalt=59 if iscoco==8252
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8253
{txt}(33 real changes made)
{com}. replace offshwalt=75 if iscoco==8261
{txt}(81 real changes made)
{com}. replace offshwalt=75 if iscoco==8262
{txt}(52 real changes made)
{com}. replace offshwalt=75 if iscoco==8263
{txt}(561 real changes made)
{com}. replace offshwalt=75 if iscoco==8264
{txt}(234 real changes made)
{com}. replace offshwalt=75 if iscoco==8265
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==8266
{txt}(47 real changes made)
{com}. replace offshwalt=75 if iscoco==8269
{txt}(71 real changes made)
{com}. replace offshwalt=27 if iscoco==8271
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8272
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8273
{txt}(0 real changes made)
{com}. replace offshwalt=30 if iscoco==8274
{txt}(0 real changes made)
{com}. replace offshwalt=31 if iscoco==8275
{txt}(15 real changes made)
{com}. replace offshwalt=68 if iscoco==8276
{txt}(0 real changes made)
{com}. replace offshwalt=27 if iscoco==8277
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8278
{txt}(0 real changes made)
{com}. replace offshwalt=66 if iscoco==8281
{txt}(0 real changes made)
{com}. replace offshwalt=66 if iscoco==8282
{txt}(219 real changes made)
{com}. replace offshwalt=66 if iscoco==8283
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8284
{txt}(0 real changes made)
{com}. replace offshwalt=57 if iscoco==8285
{txt}(0 real changes made)
{com}. replace offshwalt=64 if iscoco==8286
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8290
{txt}(216 real changes made)
{com}. replace offshwalt=34 if iscoco==8340
{txt}(15 real changes made)
{com}. replace offshwalt=95 if iscoco==9113
{txt}(62 real changes made)
{com}. replace offshwalt=64 if iscoco==9321
{txt}(49 real changes made)
{com}. replace offshwalt=29 if iscoco==9333
{txt}(675 real changes made)
{com}. replace offshwalt=55 if iscoco==1227
{txt}(753 real changes made)
{com}. replace offshwalt=89 if iscoco==2121
{txt}(0 real changes made)
{com}. replace offshwalt=100 if iscoco==2132
{txt}(156 real changes made)
{com}. replace offshwalt=70 if iscoco==2145
{txt}(149 real changes made)
{com}. replace offshwalt=71 if iscoco==2149
{txt}(0 real changes made)
{com}. replace offshwalt=81 if iscoco==2211
{txt}(0 real changes made)
{com}. replace offshwalt=46 if iscoco==2412
{txt}(290 real changes made)
{com}. replace offshwalt=50 if iscoco==2419
{txt}(0 real changes made)
{com}. replace offshwalt=33 if iscoco==2432
{txt}(162 real changes made)
{com}. replace offshwalt=89 if iscoco==2441
{txt}(14 real changes made)
{com}. replace offshwalt=48 if iscoco==2455
{txt}(0 real changes made)
{com}. replace offshwalt=72 if iscoco==3115
{txt}(0 real changes made)
{com}. replace offshwalt=54 if iscoco==3119
{txt}(0 real changes made)
{com}. replace offshwalt=46 if iscoco==3133
{txt}(0 real changes made)
{com}. replace offshwalt=34 if iscoco==3139
{txt}(0 real changes made)
{com}. replace offshwalt=34 if iscoco==3224
{txt}(39 real changes made)
{com}. replace offshwalt=51 if iscoco==3411
{txt}(0 real changes made)
{com}. replace offshwalt=25 if iscoco==3415
{txt}(1,019 real changes made)
{com}. replace offshwalt=50 if iscoco==3417
{txt}(154 real changes made)
{com}. replace offshwalt=59 if iscoco==3419
{txt}(0 real changes made)
{com}. replace offshwalt=51 if iscoco==3432
{txt}(0 real changes made)
{com}. replace offshwalt=54 if iscoco==3439
{txt}(0 real changes made)
{com}. replace offshwalt=90 if iscoco==3460
{txt}(30 real changes made)
{com}. replace offshwalt=54 if iscoco==4122
{txt}(0 real changes made)
{com}. replace offshwalt=31 if iscoco==4131
{txt}(0 real changes made)
{com}. replace offshwalt=67 if iscoco==4132
{txt}(0 real changes made)
{com}. replace offshwalt=46 if iscoco==4141
{txt}(0 real changes made)
{com}. replace offshwalt=26 if iscoco==4142
{txt}(0 real changes made)
{com}. replace offshwalt=54 if iscoco==4222
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==7141
{txt}(190 real changes made)
{com}. replace offshwalt=68 if iscoco==7224
{txt}(0 real changes made)
{com}. replace offshwalt=65 if iscoco==7241
{txt}(66 real changes made)
{com}. replace offshwalt=34 if iscoco==7344
{txt}(0 real changes made)
{com}. replace offshwalt=72 if iscoco==7442
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8122
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8139
{txt}(0 real changes made)
{com}. replace offshwalt=42 if iscoco==8161
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8211
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8223
{txt}(0 real changes made)
{com}. replace offshwalt=41 if iscoco==8224
{txt}(0 real changes made)
{com}. replace offshwalt=57 if iscoco==8240
{txt}(0 real changes made)
{com}. replace offshwalt=58 if iscoco==8251
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==8269
{txt}(0 real changes made)
{com}. replace offshwalt=66 if iscoco==8281
{txt}(0 real changes made)
{com}. replace offshwalt=66 if iscoco==8283
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8284
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8290
{txt}(0 real changes made)
{com}. replace offshwalt=70 if iscoco==9322
{txt}(251 real changes made)
{com}. {c )-}
. 
. * Create Ordinal Offshwalt Variable
. {c -(}
. gen offshwalt4=.
{txt}(64,814 missing values generated)
{com}. replace offshwalt4=4 if offshwalt<.
{txt}(60,912 real changes made)
{com}. replace offshwalt4=3 if offshwalt<75
{txt}(54,157 real changes made)
{com}. replace offshwalt4=2 if offshwalt<50
{txt}(43,409 real changes made)
{com}. replace offshwalt4=1 if offshwalt<25
{txt}(34,126 real changes made)
{com}. label var offshwalt4 "offshwalt ordinal (4 categories)"
. {c )-}
. 
. * Binary Offshwalt Variable
. gen offshwalt2=offshwalt4>1
. replace offshwalt2=. if offshwalt==.
{txt}(3,902 real changes made, 3,902 to missing)
{com}. label var offshwalt2 "offshwalt binary: =1 if offshwalt>=25 if offshwalt"
. {c )-}
. *******************************************************************************
. *****4. Skill specificity provided Iversen, Cusack and Rehm (2011) ************
. *******************************************************************************
. {c -(}
. {c -(}
. */ This code is provided by Torben Iversen; Thomas Cusack; Philipp Rehm, 2011: Risks at Work The Demand and Supply Sides of Government Redistribution
. {c -(}
. gen relskillspec=.      
{txt}(64,814 missing values generated)
{com}.         replace relskillspec=6.168528055        if iscoco2==11
{txt}(469 real changes made)
{com}.         replace relskillspec=2.840445869        if iscoco2==12
{txt}(6,362 real changes made)
{com}.         replace relskillspec=1.612754672        if iscoco2==13
{txt}(1,383 real changes made)
{com}.         replace relskillspec=3.94911483         if iscoco2==21
{txt}(2,027 real changes made)
{com}.         replace relskillspec=2.875304662        if iscoco2==22
{txt}(1,464 real changes made)
{com}.         replace relskillspec=1.298205499        if iscoco2==23
{txt}(3,200 real changes made)
{com}.         replace relskillspec=3.38271403         if iscoco2==24
{txt}(3,113 real changes made)
{com}.         replace relskillspec=5.999693379        if iscoco2==31
{txt}(1,492 real changes made)
{com}.         replace relskillspec=5.599717306        if iscoco2==32
{txt}(2,939 real changes made)
{com}.         replace relskillspec=2.435374975        if iscoco2==33
{txt}(365 real changes made)
{com}.         replace relskillspec=3.582262408        if iscoco2==34
{txt}(3,500 real changes made)
{com}.         replace relskillspec=1.803739154        if iscoco2==41
{txt}(7,305 real changes made)
{com}.         replace relskillspec=3.899735492        if iscoco2==42
{txt}(2,000 real changes made)
{com}.         replace relskillspec=3.020082744        if iscoco2==51
{txt}(5,200 real changes made)
{com}.         replace relskillspec=0.787535801        if iscoco2==52
{txt}(1,737 real changes made)
{com}.         replace relskillspec=4.674256488        if iscoco2==61
{txt}(490 real changes made)
{com}.         replace relskillspec=3.91546829         if iscoco2==71
{txt}(1,837 real changes made)
{com}.         replace relskillspec=3.842807254        if iscoco2==72
{txt}(3,409 real changes made)
{com}.         replace relskillspec=20.41910075        if iscoco2==73
{txt}(235 real changes made)
{com}.         replace relskillspec=9.446026838        if iscoco2==74
{txt}(602 real changes made)
{com}.         replace relskillspec=25.06473567        if iscoco2==81
{txt}(505 real changes made)
{com}.         replace relskillspec=12.27676336        if iscoco2==82
{txt}(2,820 real changes made)
{com}.         replace relskillspec=3.672294237        if iscoco2==83
{txt}(2,096 real changes made)
{com}.         replace relskillspec=7.39344664         if iscoco2==91
{txt}(2,876 real changes made)
{com}.         replace relskillspec=7.384150506        if iscoco2==92
{txt}(435 real changes made)
{com}.         replace relskillspec=6.460338111        if iscoco2==93
{txt}(1,639 real changes made)
{com}.         label var relskillspec "Relative skill specificity , Iversen"
. {c )-}
.         
. {c )-}
. 
. {c )-}
. *******************************************************************************
. * 5. task categories Kurer (2020)
. *******************************************************************************
. {c -(}
. rename iscoco iscoco_withoutchange
{res}{com}. gen iscoco=iscoco_withoutchange
{txt}(3,902 missing values generated)
{com}.     
. {c -(}
. *generating 3 task categories
. gen task = .
{txt}(64,814 missing values generated)
{com}. gen isco=iscoco
{txt}(3,902 missing values generated)
{com}. replace task = 1 if inlist(isco, 2411, 2431, 2441, 3411, 3471)
{txt}(1,004 real changes made)
{com}. replace task = 1 if inrange(isco, 2100, 2213)
{txt}(2,170 real changes made)
{com}. replace task = 1 if inrange(isco, 2443, 2444)
{txt}(26 real changes made)
{com}. replace task = 1 if inrange(isco, 2446, 2452)
{txt}(984 real changes made)
{com}. replace task = 1 if inrange(isco, 3100, 3212)
{txt}(1,793 real changes made)
{com}. replace task = 1 if inrange(isco, 3433, 3440)
{txt}(25 real changes made)
{com}. replace task = 1 if inrange(isco, 3442, 3444)
{txt}(65 real changes made)
{com}. 
. replace task = 2 if inlist(isco, 2442, 2445, 3226, 3432, 3441)
{txt}(806 real changes made)
{com}. replace task = 2 if inrange(isco, 1000, 1319)
{txt}(7,754 real changes made)
{com}. replace task = 2 if inrange(isco, 2220, 2410)
{txt}(4,521 real changes made)
{com}. replace task = 2 if inrange(isco, 2412, 2430)
{txt}(861 real changes made)
{com}. replace task = 2 if inrange(isco, 2432, 2440)
{txt}(180 real changes made)
{com}. replace task = 2 if inrange(isco, 2453, 2470)
{txt}(353 real changes made)
{com}. replace task = 2 if inrange(isco, 3213, 3220)
{txt}(0 real changes made)
{com}. replace task = 2 if inrange(isco, 3222, 3224)
{txt}(91 real changes made)
{com}. replace task = 2 if inrange(isco, 3229, 3410)
{txt}(2,369 real changes made)
{com}. replace task = 2 if inrange(isco, 3412, 3429)
{txt}(2,219 real changes made)
{com}. replace task = 2 if inrange(isco, 3449, 3470)
{txt}(125 real changes made)
{com}. replace task = 2 if inrange(isco, 3472, 3480)
{txt}(110 real changes made)
{com}. 
. replace task = 3 if isco==4223
{txt}(252 real changes made)
{com}. replace task = 3 if inrange(isco, 3430, 3431)
{txt}(0 real changes made)
{com}. replace task = 3 if inrange(isco, 4000, 4195)
{txt}(7,305 real changes made)
{com}. replace task = 3 if inrange(isco, 4210, 4215)
{txt}(1,266 real changes made)
{com}. 
. replace task = 4 if inlist(isco, 7124, 8340, 9120, 9133)
{txt}(620 real changes made)
{com}. replace task = 4 if inrange(isco, 1, 110) /* departing from oesch, including 110 (armed forces). this is the actual intention of 1-100 */
{txt}(460 real changes made)
{com}. replace task = 4 if inrange(isco, 6100, 7113)
{txt}(515 real changes made)
{com}. replace task = 4 if inrange(isco, 7210, 8290)
{txt}(7,516 real changes made)
{com}. replace task = 4 if inrange(isco, 9000, 9001)
{txt}(0 real changes made)
{com}. replace task = 4 if inrange(isco, 9150, 9151)
{txt}(139 real changes made)
{com}. replace task = 4 if inrange(isco, 9153, 9161)
{txt}(86 real changes made)
{com}. replace task = 4 if inrange(isco, 9200, 9311)
{txt}(471 real changes made)
{com}. 
. replace task = 5 if inlist(isco, 5122, 5143, 9002, 9162)
{txt}(1,088 real changes made)
{com}. replace task = 5 if inrange(isco, 7120, 7123)
{txt}(141 real changes made)
{com}. replace task = 5 if inrange(isco, 7129, 7143)
{txt}(1,066 real changes made)
{com}. replace task = 5 if inrange(isco, 8300, 8334)
{txt}(2,081 real changes made)
{com}. replace task = 5 if inrange(isco, 9130, 9132)
{txt}(1,235 real changes made)
{com}. replace task = 5 if inrange(isco, 9140, 9142)
{txt}(1,160 real changes made)
{com}. replace task = 5 if inrange(isco, 9312, 9313)
{txt}(601 real changes made)
{com}. 
. replace task = 6 if inlist(isco, 3221, 3225, 4200, 9152)
{txt}(474 real changes made)
{com}. replace task = 6 if inrange(isco, 3227, 3228)
{txt}(18 real changes made)
{com}. replace task = 6 if inrange(isco, 4220, 4222)
{txt}(482 real changes made)
{com}. replace task = 6 if inrange(isco, 5000, 5121)
{txt}(237 real changes made)
{com}. replace task = 6 if inrange(isco, 5123, 5142)
{txt}(2,984 real changes made)
{com}. replace task = 6 if inrange(isco, 5149, 5220)
{txt}(2,628 real changes made)
{com}. replace task = 6 if inrange(isco, 9003, 9005)
{txt}(0 real changes made)
{com}. replace task = 6 if inrange(isco, 9100, 9113)
{txt}(162 real changes made)
{com}. replace task = 6 if inrange(isco, 9320, 9333) /* departing from oesch, including 9333 (transport labourers, animal vehicles) */
{txt}(1,002 real changes made)
{com}. 
. * add isco categories 2000 and 3000
. * officially not defined, thus not part of oesch's categories
. 
. replace task = 1 if inlist(isco, 2000, 3000)
{txt}(0 real changes made)
{com}. 
. * task3
. 
. gen task3 = .
{txt}(64,814 missing values generated)
{com}. replace task3 = 1 if task==1 | task==2 // NRM
{txt}(25,456 real changes made)
{com}. replace task3 = 2 if task==3 | task==4 // R
{txt}(18,630 real changes made)
{com}. replace task3 = 3 if task==5 | task==6 // NRC
{txt}(15,359 real changes made)
{com}. tab task3

      {txt}task3 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res}     25,456       42.82       42.82
{txt}          2 {c |}{res}     18,630       31.34       74.16
{txt}          3 {c |}{res}     15,359       25.84      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}     59,445      100.00
{com}. 
. 
. drop isco iscoco
. rename iscoco_withoutchange iscoco
{res}{com}. 
. {c )-}
. 
. {c )-}
. {c )-}
. 
. ************************************************************************
. * Generate a dummy to summarize the risk of automation 
. gen task3cog1=(task3==1) // dummy for non routine cognitive work - 3 task approach
. replace task3cog1=. if task3==.
{txt}(5,369 real changes made, 5,369 to missing)
{com}. gen task3cog2and3=(task3==2 | task3==3) // dummy for  routine cognitive work - 3 task approach
. replace task3cog2and3=. if task3==.
{txt}(5,369 real changes made, 5,369 to missing)
{com}. {c )-}
. 
. ************************************************************************
. ********************* D. Switching *************************************
. ************************************************************************
. {c -(}
. * Here I am looking at the answer in 2014 and then comparing with the answer in 2018
. // Note: 2014 and 2018 are the first years that the question about presidential election was incldued. THat is pres12 appeared for the first time in 2014 and pres16 in 2018
. gen vot_12_14=pres12 if year==2014
{txt}(63,215 missing values generated)
{com}. replace vot_12_14=. if pres12~=1 & pres12~=2 & pres12~=3 
{txt}(953 real changes made, 953 to missing)
{com}. by id, sort: egen vot12_14=total(vot_12_14)
. 
. 
. // This is my main definition of swithcing which is basically only 1 when change, but 0 in all the other cases
. gen switching2 = . 
{txt}(64,814 missing values generated)
{com}. replace switching2 = 1 if vot12_14==1 & pres16==2 // Democrat to Rep
{txt}(207 real changes made)
{com}. replace switching2 = 0 if vot12_14==1 & pres16==1 // Democrat to Democrat
{txt}(283 real changes made)
{com}. replace switching2 = 0 if vot12_14==2 //Republicans in 2012
{txt}(13,698 real changes made)
{com}. replace switching2 = 0 if vot12_14==1 & pres16~=2 // Democrat to anything except Rep
{txt}(22,679 real changes made)
{com}. replace switching2 = 0 if vot12_14==3 // Other candidate
{txt}(1,016 real changes made)
{com}. 
. rename switching2 switching2_broad 
{res}{com}. 
.         
. // This is a more restricted definition of swithchin
. gen switching_estrict = . 
{txt}(64,814 missing values generated)
{com}. replace switching_estrict = 1 if vot12_14==1 & pres16==2 // Democrat to Rep
{txt}(207 real changes made)
{com}. replace switching_estrict = 0 if vot12_14==1 & pres16==1 // Democrat to Democrat
{txt}(283 real changes made)
{com}.     
. 
. {c )-}    
. {c )-}
. *############################################
. * Saving the data
. *############################################
. {c -(}
. * Labels
. {c -(}
. lab var  switching2_broad "Switching"
. lab var  switching_estrict "Switching"
. lab var rti "RTI"
. lab var female "Female"
. lab var age "Age"
. lab var educ "Education"
. lab var black "Black"
. lab var unemployed "Unemployed"
. lab var foreign "Foreign born"
. lab var nonrelig "Non-Believer"
. lab var offshwalt2 "Offshorability"
. lab var offshwalt2 "Offshorability"
. lab var relskillspec "Skill-Specificity"
. lab var t2 "Task-Tech"
. lab var t3 "Task-Inter"
. lab var task3cog1 "Non-Routine"
. lab var task3cog2and3 "Routine"
. 
. 
.         
. {c )-}       
. 
. 
. keep id switching2_broad   rti age  female   foreign black unemployed nonrelig rincome  region  offshwalt2 relskillspec t2 t3 rincome wtssnr year educ switching_estrict task3cog2and3
. 
. save "Data\GSS.dta", replace
{txt}{p 0 4 2}
file {bf}
Data\GSS.dta{rm}
saved
{p_end}
{com}. 
. {c )-}
. {c )-}
{txt}
{com}. *##########################################
. * Alternatively load prepared data
. *##########################################
. {c -(}
. use "Data\GSS.dta", clear       
. {c )-}       
{txt}
{com}. *##########################################             
. * Analysis              
. *##########################################             
. {c -(}               
. {c -(}
. // Figure 3: The effect of exposure to automation on vote-switching. [US Part]          
. {c -(}               
. // Graph style          
. grstyle clear           
. set scheme s2color              
. grstyle init            
{res}{com}. grstyle set plain, nogrid               
. grstyle color background white          
.                 
.                 
. logit  switching_estrict  rti female age  foreign   rincome offshwalt2  relskillspec t2 t3 i.region  [pw=wtssnr] if year==2018  

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-167.30402}  
Iteration 1:{space 3}log pseudolikelihood = {res:-130.42312}  
Iteration 2:{space 3}log pseudolikelihood = {res:-129.95109}  
Iteration 3:{space 3}log pseudolikelihood = {res:-129.94784}  
Iteration 4:{space 3}log pseudolikelihood = {res:-129.94784}  
{res}
{txt}Logistic regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:243}
{txt}{col 57}{lalign 13:Wald chi2({res:17})}{col 70} = {res}{ralign 6:64.26}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}Log pseudolikelihood = {res:-129.94784}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.2233}

{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}switching_estrict{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      z{col 51}   P>|z|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}rti {c |}{col 19}{res}{space 2} .5658073{col 31}{space 2} .2273346{col 42}{space 1}    2.49{col 51}{space 3}0.013{col 59}{space 4} .1202397{col 72}{space 3} 1.011375
{txt}{space 11}female {c |}{col 19}{res}{space 2}-1.128794{col 31}{space 2} .4069663{col 42}{space 1}   -2.77{col 51}{space 3}0.006{col 59}{space 4}-1.926433{col 72}{space 3}-.3311546
{txt}{space 14}age {c |}{col 19}{res}{space 2} .0301868{col 31}{space 2}  .011984{col 42}{space 1}    2.52{col 51}{space 3}0.012{col 59}{space 4} .0066985{col 72}{space 3} .0536751
{txt}{space 10}foreign {c |}{col 19}{res}{space 2}-1.895753{col 31}{space 2} .5648859{col 42}{space 1}   -3.36{col 51}{space 3}0.001{col 59}{space 4}-3.002909{col 72}{space 3}-.7885968
{txt}{space 10}rincome {c |}{col 19}{res}{space 2} .0511515{col 31}{space 2} .0690097{col 42}{space 1}    0.74{col 51}{space 3}0.459{col 59}{space 4} -.084105{col 72}{space 3} .1864079
{txt}{space 7}offshwalt2 {c |}{col 19}{res}{space 2}-.8056715{col 31}{space 2} .4105859{col 42}{space 1}   -1.96{col 51}{space 3}0.050{col 59}{space 4}-1.610405{col 72}{space 3}-.0009378
{txt}{space 5}relskillspec {c |}{col 19}{res}{space 2}-.0305749{col 31}{space 2}  .040406{col 42}{space 1}   -0.76{col 51}{space 3}0.449{col 59}{space 4}-.1097693{col 72}{space 3} .0486194
{txt}{space 15}t2 {c |}{col 19}{res}{space 2}-.0996389{col 31}{space 2} .4884826{col 42}{space 1}   -0.20{col 51}{space 3}0.838{col 59}{space 4}-1.057047{col 72}{space 3} .8577693
{txt}{space 15}t3 {c |}{col 19}{res}{space 2} -.079217{col 31}{space 2} .5310481{col 42}{space 1}   -0.15{col 51}{space 3}0.881{col 59}{space 4}-1.120052{col 72}{space 3} .9616181
{txt}{space 17} {c |}
{space 11}region {c |}
{space 1}middle atlantic  {c |}{col 19}{res}{space 2}-.5430042{col 31}{space 2}  .810176{col 42}{space 1}   -0.67{col 51}{space 3}0.503{col 59}{space 4} -2.13092{col 72}{space 3} 1.044912
{txt}{space 1}e. nor. central  {c |}{col 19}{res}{space 2}-.1454866{col 31}{space 2}  .778773{col 42}{space 1}   -0.19{col 51}{space 3}0.852{col 59}{space 4}-1.671854{col 72}{space 3}  1.38088
{txt}{space 1}w. nor. central  {c |}{col 19}{res}{space 2} 1.484793{col 31}{space 2}  .908646{col 42}{space 1}    1.63{col 51}{space 3}0.102{col 59}{space 4}-.2961209{col 72}{space 3} 3.265706
{txt}{space 2}south atlantic  {c |}{col 19}{res}{space 2} .3657923{col 31}{space 2} .7929829{col 42}{space 1}    0.46{col 51}{space 3}0.645{col 59}{space 4}-1.188426{col 72}{space 3}  1.92001
{txt}{space 1}e. sou. central  {c |}{col 19}{res}{space 2}-.4843724{col 31}{space 2} .9668615{col 42}{space 1}   -0.50{col 51}{space 3}0.616{col 59}{space 4}-2.379386{col 72}{space 3} 1.410641
{txt}{space 1}w. sou. central  {c |}{col 19}{res}{space 2}  .694538{col 31}{space 2}    .8023{col 42}{space 1}    0.87{col 51}{space 3}0.387{col 59}{space 4}-.8779411{col 72}{space 3} 2.267017
{txt}{space 8}mountain  {c |}{col 19}{res}{space 2} 1.481022{col 31}{space 2}  1.04107{col 42}{space 1}    1.42{col 51}{space 3}0.155{col 59}{space 4} -.559437{col 72}{space 3} 3.521482
{txt}{space 9}pacific  {c |}{col 19}{res}{space 2}-1.354386{col 31}{space 2} .9018321{col 42}{space 1}   -1.50{col 51}{space 3}0.133{col 59}{space 4}-3.121945{col 72}{space 3} .4131719
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2}-.9208033{col 31}{space 2} 1.288692{col 42}{space 1}   -0.71{col 51}{space 3}0.475{col 59}{space 4}-3.446593{col 72}{space 3} 1.604986
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{com}.                 
. margins, atmeans at(rti=(-1.52(0.1)2.24))               
{res}
{txt}Adjusted predictions{col 60}{lalign 13:Number of obs}{col 73} = {res}{ralign 3:243}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Pr(switching_estrict), predict()}{p_end}
{p2colreset}{...}
{lalign 8:1._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-1.52}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:2._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-1.42}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:3._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-1.32}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:4._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-1.22}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:5._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-1.12}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:6._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-1.02}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:7._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-.92}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:8._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-.82}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:9._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-.72}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:10._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-.62}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:11._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-.52}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:12._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-.42}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:13._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-.32}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:14._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-.22}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:15._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-.12}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:16._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:-.02}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:17._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:.08}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:18._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:.18}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:19._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:.28}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:20._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:.38}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:21._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:.48}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:22._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:.58}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:23._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:.68}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:24._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:.78}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:25._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:.88}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:26._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:.98}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:27._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:1.08}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:28._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:1.18}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:29._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:1.28}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:30._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:1.38}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:31._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:1.48}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:32._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:1.58}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:33._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:1.68}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:34._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:1.78}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:35._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:1.88}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:36._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:1.98}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:37._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:2.08}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}
{lalign 8:38._at: }{space 0}{lalign 12:rti} = {res:{ralign 8:2.18}}
{lalign 8:}{space 0}{lalign 12:female} = {res:{ralign 8:.532048}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:age} = {res:{ralign 8:47.7697}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:foreign} = {res:{ralign 8:.0820038}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:rincome} = {res:{ralign 8:10.60962}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:offshwalt2} = {res:{ralign 8:.4581331}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:relskillspec} = {res:{ralign 8:4.348051}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t2} = {res:{ralign 8:.2862899}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:t3} = {res:{ralign 8:.3541626}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:1.region} = {res:{ralign 8:.0445602}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:2.region} = {res:{ralign 8:.1714176}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:3.region} = {res:{ralign 8:.1504749}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:4.region} = {res:{ralign 8:.0813046}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:5.region} = {res:{ralign 8:.2221665}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:6.region} = {res:{ralign 8:.0361411}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:7.region} = {res:{ralign 8:.0841592}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:8.region} = {res:{ralign 8:.0927575}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 12:9.region} = {res:{ralign 8:.1170185}} {txt:(mean)}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .2681696{col 26}{space 2} .0715293{col 37}{space 1}    3.75{col 46}{space 3}0.000{col 54}{space 4} .1279748{col 67}{space 3} .4083645
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .2794184{col 26}{space 2} .0693908{col 37}{space 1}    4.03{col 46}{space 3}0.000{col 54}{space 4} .1434149{col 67}{space 3}  .415422
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .2909514{col 26}{space 2} .0670853{col 37}{space 1}    4.34{col 46}{space 3}0.000{col 54}{space 4} .1594666{col 67}{space 3} .4224363
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .3027605{col 26}{space 2} .0646345{col 37}{space 1}    4.68{col 46}{space 3}0.000{col 54}{space 4} .1760793{col 67}{space 3} .4294417
{txt}{space 10}5  {c |}{col 14}{res}{space 2} .3148361{col 26}{space 2} .0620664{col 37}{space 1}    5.07{col 46}{space 3}0.000{col 54}{space 4} .1931881{col 67}{space 3} .4364841
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .3271672{col 26}{space 2}  .059417{col 37}{space 1}    5.51{col 46}{space 3}0.000{col 54}{space 4} .2107121{col 67}{space 3} .4436224
{txt}{space 10}7  {c |}{col 14}{res}{space 2} .3397419{col 26}{space 2} .0567308{col 37}{space 1}    5.99{col 46}{space 3}0.000{col 54}{space 4} .2285515{col 67}{space 3} .4509322
{txt}{space 10}8  {c |}{col 14}{res}{space 2} .3525466{col 26}{space 2}  .054063{col 37}{space 1}    6.52{col 46}{space 3}0.000{col 54}{space 4} .2465851{col 67}{space 3} .4585082
{txt}{space 10}9  {c |}{col 14}{res}{space 2} .3655668{col 26}{space 2} .0514805{col 37}{space 1}    7.10{col 46}{space 3}0.000{col 54}{space 4} .2646667{col 67}{space 3} .4664668
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .3787864{col 26}{space 2}  .049063{col 37}{space 1}    7.72{col 46}{space 3}0.000{col 54}{space 4} .2826246{col 67}{space 3} .4749482
{txt}{space 9}11  {c |}{col 14}{res}{space 2} .3921886{col 26}{space 2} .0469024{col 37}{space 1}    8.36{col 46}{space 3}0.000{col 54}{space 4} .3002616{col 67}{space 3} .4841157
{txt}{space 9}12  {c |}{col 14}{res}{space 2} .4057553{col 26}{space 2} .0450999{col 37}{space 1}    9.00{col 46}{space 3}0.000{col 54}{space 4} .3173611{col 67}{space 3} .4941495
{txt}{space 9}13  {c |}{col 14}{res}{space 2} .4194674{col 26}{space 2} .0437593{col 37}{space 1}    9.59{col 46}{space 3}0.000{col 54}{space 4} .3337007{col 67}{space 3} .5052341
{txt}{space 9}14  {c |}{col 14}{res}{space 2}  .433305{col 26}{space 2}  .042976{col 37}{space 1}   10.08{col 46}{space 3}0.000{col 54}{space 4} .3490736{col 67}{space 3} .5175363
{txt}{space 9}15  {c |}{col 14}{res}{space 2} .4472474{col 26}{space 2} .0428224{col 37}{space 1}   10.44{col 46}{space 3}0.000{col 54}{space 4} .3633169{col 67}{space 3} .5311778
{txt}{space 9}16  {c |}{col 14}{res}{space 2} .4612732{col 26}{space 2} .0433355{col 37}{space 1}   10.64{col 46}{space 3}0.000{col 54}{space 4} .3763372{col 67}{space 3} .5462092
{txt}{space 9}17  {c |}{col 14}{res}{space 2} .4753607{col 26}{space 2} .0445092{col 37}{space 1}   10.68{col 46}{space 3}0.000{col 54}{space 4} .3881242{col 67}{space 3} .5625971
{txt}{space 9}18  {c |}{col 14}{res}{space 2} .4894874{col 26}{space 2} .0462975{col 37}{space 1}   10.57{col 46}{space 3}0.000{col 54}{space 4}  .398746{col 67}{space 3} .5802288
{txt}{space 9}19  {c |}{col 14}{res}{space 2}  .503631{col 26}{space 2} .0486244{col 37}{space 1}   10.36{col 46}{space 3}0.000{col 54}{space 4} .4083289{col 67}{space 3}  .598933
{txt}{space 9}20  {c |}{col 14}{res}{space 2} .5177687{col 26}{space 2} .0513977{col 37}{space 1}   10.07{col 46}{space 3}0.000{col 54}{space 4} .4170311{col 67}{space 3} .6185064
{txt}{space 9}21  {c |}{col 14}{res}{space 2} .5318781{col 26}{space 2} .0545209{col 37}{space 1}    9.76{col 46}{space 3}0.000{col 54}{space 4} .4250192{col 67}{space 3} .6387371
{txt}{space 9}22  {c |}{col 14}{res}{space 2} .5459367{col 26}{space 2} .0579012{col 37}{space 1}    9.43{col 46}{space 3}0.000{col 54}{space 4} .4324524{col 67}{space 3}  .659421
{txt}{space 9}23  {c |}{col 14}{res}{space 2} .5599224{col 26}{space 2} .0614543{col 37}{space 1}    9.11{col 46}{space 3}0.000{col 54}{space 4} .4394741{col 67}{space 3} .6803707
{txt}{space 9}24  {c |}{col 14}{res}{space 2} .5738136{col 26}{space 2} .0651058{col 37}{space 1}    8.81{col 46}{space 3}0.000{col 54}{space 4} .4462087{col 67}{space 3} .7014185
{txt}{space 9}25  {c |}{col 14}{res}{space 2} .5875893{col 26}{space 2} .0687909{col 37}{space 1}    8.54{col 46}{space 3}0.000{col 54}{space 4} .4527615{col 67}{space 3} .7224171
{txt}{space 9}26  {c |}{col 14}{res}{space 2} .6012292{col 26}{space 2} .0724546{col 37}{space 1}    8.30{col 46}{space 3}0.000{col 54}{space 4} .4592209{col 67}{space 3} .7432375
{txt}{space 9}27  {c |}{col 14}{res}{space 2} .6147137{col 26}{space 2} .0760494{col 37}{space 1}    8.08{col 46}{space 3}0.000{col 54}{space 4} .4656597{col 67}{space 3} .7637678
{txt}{space 9}28  {c |}{col 14}{res}{space 2} .6280244{col 26}{space 2} .0795354{col 37}{space 1}    7.90{col 46}{space 3}0.000{col 54}{space 4} .4721378{col 67}{space 3}  .783911
{txt}{space 9}29  {c |}{col 14}{res}{space 2} .6411437{col 26}{space 2}  .082879{col 37}{space 1}    7.74{col 46}{space 3}0.000{col 54}{space 4} .4787039{col 67}{space 3} .8035835
{txt}{space 9}30  {c |}{col 14}{res}{space 2} .6540551{col 26}{space 2} .0860518{col 37}{space 1}    7.60{col 46}{space 3}0.000{col 54}{space 4} .4853968{col 67}{space 3} .8227135
{txt}{space 9}31  {c |}{col 14}{res}{space 2} .6667435{col 26}{space 2} .0890305{col 37}{space 1}    7.49{col 46}{space 3}0.000{col 54}{space 4} .4922469{col 67}{space 3} .8412401
{txt}{space 9}32  {c |}{col 14}{res}{space 2} .6791948{col 26}{space 2} .0917963{col 37}{space 1}    7.40{col 46}{space 3}0.000{col 54}{space 4} .4992773{col 67}{space 3} .8591122
{txt}{space 9}33  {c |}{col 14}{res}{space 2} .6913961{col 26}{space 2} .0943341{col 37}{space 1}    7.33{col 46}{space 3}0.000{col 54}{space 4} .5065047{col 67}{space 3} .8762876
{txt}{space 9}34  {c |}{col 14}{res}{space 2} .7033361{col 26}{space 2} .0966325{col 37}{space 1}    7.28{col 46}{space 3}0.000{col 54}{space 4} .5139399{col 67}{space 3} .8927324
{txt}{space 9}35  {c |}{col 14}{res}{space 2} .7150046{col 26}{space 2} .0986834{col 37}{space 1}    7.25{col 46}{space 3}0.000{col 54}{space 4} .5215888{col 67}{space 3} .9084204
{txt}{space 9}36  {c |}{col 14}{res}{space 2} .7263927{col 26}{space 2} .1004814{col 37}{space 1}    7.23{col 46}{space 3}0.000{col 54}{space 4} .5294528{col 67}{space 3} .9233326
{txt}{space 9}37  {c |}{col 14}{res}{space 2} .7374927{col 26}{space 2}  .102024{col 37}{space 1}    7.23{col 46}{space 3}0.000{col 54}{space 4} .5375293{col 67}{space 3} .9374562
{txt}{space 9}38  {c |}{col 14}{res}{space 2} .7482985{col 26}{space 2} .1033112{col 37}{space 1}    7.24{col 46}{space 3}0.000{col 54}{space 4} .5458123{col 67}{space 3} .9507848
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{com}.      marginsplot , recast(line) recastci(rline) ci1opts(fintensity(50) lpattern(dot)) xti(Risk of automation (RTI - Index)) yti(Predicted Probability of Switching (95% CI)) ti("US") saving("Figure\US.gph", replace)          
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:rti}{p_end}
{res}{txt}file {bf:Figure\US.gph} saved
{com}. {c )-}       
. lab var  switching2_broad "Switching broad" // broad
. lab var  switching_estrict "Switching strict"           // strict                       
. // table A3: Switching Vote, IV - RTI, US
. {c -(}
. eststo clear
. eststo: qui logit switching2_broad rti  female age   foreign educ i.rincome  [pw=wtssnr] if year==2018, robust                          
{txt}({res}est1{txt} stored)
{com}. eststo: qui logit switching2_broad rti  female age   foreign educ i.rincome offshwalt2  i.region [pw=wtssnr] if year==2018, robust      
{txt}({res}est2{txt} stored)
{com}. eststo: qui logit switching2_broad rti  female age   foreign educ i.rincome offshwalt2 relskillspec  i.region [pw=wtssnr] if year==2018, robust                 
{txt}({res}est3{txt} stored)
{com}. eststo: qui logit switching2_broad rti  female age   foreign educ i.rincome offshwalt2 relskillspec t2 t3 unemployed black nonrelig i.region [pw=wtssnr] if year==2018, robust          
{txt}({res}est4{txt} stored)
{com}. 
. esttab , replace label se title(Switching Vote, IV - RTI, US \label {c -(}tab:rtilong{c )-})mti("+Demographic" "+Offshoring" "+Skill" "All") compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(rti  female age   foreign educ offshwalt2 relskillspec t2 t3  unemployed black nonrelig) scalars( "N Observations" "r2_p R$^2 p$" "aic AIC" ) indicate( "Income = *.rincome"  "Regional controls = *.region")
{res}
{txt}Switching Vote, IV - RTI, US \label {tab:rtilong}
{txt}{hline 68}
{txt}                       (1)          (2)          (3)          (4)   
{txt}                 +Demogr~c    +Offsho~g       +Skill          All   
{txt}{hline 68}
{res}Switching broad                                                     {txt}
{txt}RTI             {res}     0.243*       0.376**      0.371**      0.396** {txt}
                {res} {ralign 9:{txt:(}0.125{txt:)}}    {ralign 9:{txt:(}0.146{txt:)}}    {ralign 9:{txt:(}0.146{txt:)}}    {ralign 9:{txt:(}0.171{txt:)}}   {txt}
{txt}Female          {res}    -0.453       -0.475       -0.448       -0.632** {txt}
                {res} {ralign 9:{txt:(}0.292{txt:)}}    {ralign 9:{txt:(}0.292{txt:)}}    {ralign 9:{txt:(}0.293{txt:)}}    {ralign 9:{txt:(}0.299{txt:)}}   {txt}
{txt}Age             {res}     0.040***     0.046***     0.046***     0.042***{txt}
                {res} {ralign 9:{txt:(}0.009{txt:)}}    {ralign 9:{txt:(}0.009{txt:)}}    {ralign 9:{txt:(}0.009{txt:)}}    {ralign 9:{txt:(}0.009{txt:)}}   {txt}
{txt}Foreign born    {res}    -1.982***    -1.898***    -1.873***    -1.925***{txt}
                {res} {ralign 9:{txt:(}0.564{txt:)}}    {ralign 9:{txt:(}0.581{txt:)}}    {ralign 9:{txt:(}0.578{txt:)}}    {ralign 9:{txt:(}0.657{txt:)}}   {txt}
{txt}Education       {res}    -0.047       -0.026       -0.025       -0.045   {txt}
                {res} {ralign 9:{txt:(}0.054{txt:)}}    {ralign 9:{txt:(}0.059{txt:)}}    {ralign 9:{txt:(}0.059{txt:)}}    {ralign 9:{txt:(}0.061{txt:)}}   {txt}
{txt}Offshorability  {res}                 -0.586**     -0.588**     -0.638*  {txt}
                {res}              {ralign 9:{txt:(}0.295{txt:)}}    {ralign 9:{txt:(}0.295{txt:)}}    {ralign 9:{txt:(}0.341{txt:)}}   {txt}
{txt}Skill-Specific~y{res}                               0.023        0.039   {txt}
                {res}                           {ralign 9:{txt:(}0.031{txt:)}}    {ralign 9:{txt:(}0.035{txt:)}}   {txt}
{txt}Task-Tech       {res}                                           -0.220   {txt}
                {res}                                        {ralign 9:{txt:(}0.410{txt:)}}   {txt}
{txt}Task-Inter      {res}                                            0.105   {txt}
                {res}                                        {ralign 9:{txt:(}0.427{txt:)}}   {txt}
{txt}Unemployed      {res}                                           -0.865   {txt}
                {res}                                        {ralign 9:{txt:(}0.900{txt:)}}   {txt}
{txt}Black           {res}                                           -3.767***{txt}
                {res}                                        {ralign 9:{txt:(}1.070{txt:)}}   {txt}
{txt}Non-Believer    {res}                                           -2.021***{txt}
                {res}                                        {ralign 9:{txt:(}0.510{txt:)}}   {txt}
{txt}Income          {res}       Yes          Yes          Yes          Yes   {txt}
{txt}Regional contr~s{res}        No          Yes          Yes          Yes   {txt}
{txt}{hline 68}
{txt}Observations    {res}       704          704          704          704   {txt}
{txt}R$^2 p$         {res}     0.100        0.158        0.159        0.268   {txt}
{txt}AIC             {res}   583.652      565.677      567.117      509.700   {txt}
{txt}{hline 68}
{txt}Standard errors in parentheses
{txt}* p<0.1, ** p<0.05, *** p<0.01
{com}. 
. esttab using "Table\USlong_2.tex", replace label se title(Switching Vote, IV - RTI, US \label {c -(}tab:rtilong2{c )-})mti("+Demographic" "+Offshoring" "+Skill" "All") compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(rti  female age   foreign educ offshwalt2 relskillspec t2 t3  unemployed black nonrelig) scalars( "N Observations" "r2_p R$^2 p$" "aic AIC" ) indicate( "Income = *.rincome"  "Regional controls = *.region")
{res}{txt}(output written to {browse  `"Table\USlong_2.tex"'})
{com}.         
. {c )-}       
. // table A5: Switching Vote (alternative definition), IV - RTI          
. {c -(}
. eststo clear
. eststo: qui logit switching_estrict rti  female age   foreign educ i.rincome  i.region [pw=wtssnr] if year==2018, robust                
{txt}({res}est1{txt} stored)
{com}. eststo: qui logit switching_estrict rti  female age   foreign educ i.rincome offshwalt2  i.region [pw=wtssnr] if year==2018, robust             
{txt}({res}est2{txt} stored)
{com}. eststo: qui logit switching_estrict rti  female age   foreign educ i.rincome offshwalt2 relskillspec  i.region [pw=wtssnr] if year==2018, robust                
{txt}({res}est3{txt} stored)
{com}. eststo: qui logit switching_estrict rti  female age   foreign educ i.rincome offshwalt2 relskillspec t2 t3 unemployed black nonrelig i.region [pw=wtssnr] if year==2018, robust         
{txt}({res}est4{txt} stored)
{com}. 
. esttab , replace label se title(Switching Vote (alternative definition), IV - RTI, US \label {c -(}tab:rtilongstrict{c )-})mti("+Demographic" "+Offshoring" "+Skill" "All") compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(rti  female age   foreign educ offshwalt2 relskillspec t2 t3  unemployed black nonrelig) scalars( "N Observations" "r2_p R$^2 p$" "aic AIC" )  indicate( "Income = *.rincome"  "Regional controls = *.region")              
{res}
{txt}Switching Vote (alternative definition), IV - RTI, US \label {tab:rtilongstrict}
{txt}{hline 68}
{txt}                       (1)          (2)          (3)          (4)   
{txt}                 +Demogr~c    +Offsho~g       +Skill          All   
{txt}{hline 68}
{res}Switching strict                                                    {txt}
{txt}RTI             {res}     0.339*       0.388*       0.419*       0.821***{txt}
                {res} {ralign 9:{txt:(}0.198{txt:)}}    {ralign 9:{txt:(}0.211{txt:)}}    {ralign 9:{txt:(}0.218{txt:)}}    {ralign 9:{txt:(}0.259{txt:)}}   {txt}
{txt}Female          {res}    -0.910**     -0.961**     -1.027***    -1.111** {txt}
                {res} {ralign 9:{txt:(}0.375{txt:)}}    {ralign 9:{txt:(}0.381{txt:)}}    {ralign 9:{txt:(}0.394{txt:)}}    {ralign 9:{txt:(}0.486{txt:)}}   {txt}
{txt}Age             {res}     0.038***     0.042***     0.042***     0.025   {txt}
                {res} {ralign 9:{txt:(}0.013{txt:)}}    {ralign 9:{txt:(}0.013{txt:)}}    {ralign 9:{txt:(}0.013{txt:)}}    {ralign 9:{txt:(}0.016{txt:)}}   {txt}
{txt}Foreign born    {res}    -2.445***    -2.377***    -2.421***    -2.132** {txt}
                {res} {ralign 9:{txt:(}0.654{txt:)}}    {ralign 9:{txt:(}0.701{txt:)}}    {ralign 9:{txt:(}0.704{txt:)}}    {ralign 9:{txt:(}0.900{txt:)}}   {txt}
{txt}Education       {res}    -0.259***    -0.241***    -0.242***    -0.233***{txt}
                {res} {ralign 9:{txt:(}0.074{txt:)}}    {ralign 9:{txt:(}0.078{txt:)}}    {ralign 9:{txt:(}0.079{txt:)}}    {ralign 9:{txt:(}0.081{txt:)}}   {txt}
{txt}Offshorability  {res}                 -0.559       -0.568       -1.154** {txt}
                {res}              {ralign 9:{txt:(}0.396{txt:)}}    {ralign 9:{txt:(}0.397{txt:)}}    {ralign 9:{txt:(}0.578{txt:)}}   {txt}
{txt}Skill-Specific~y{res}                              -0.037       -0.050   {txt}
                {res}                           {ralign 9:{txt:(}0.038{txt:)}}    {ralign 9:{txt:(}0.045{txt:)}}   {txt}
{txt}Task-Tech       {res}                                            0.007   {txt}
                {res}                                        {ralign 9:{txt:(}0.642{txt:)}}   {txt}
{txt}Task-Inter      {res}                                           -0.407   {txt}
                {res}                                        {ralign 9:{txt:(}0.698{txt:)}}   {txt}
{txt}Unemployed      {res}                                           -0.575   {txt}
                {res}                                        {ralign 9:{txt:(}0.909{txt:)}}   {txt}
{txt}Black           {res}                                           -5.275***{txt}
                {res}                                        {ralign 9:{txt:(}1.404{txt:)}}   {txt}
{txt}Non-Believer    {res}                                           -2.122***{txt}
                {res}                                        {ralign 9:{txt:(}0.590{txt:)}}   {txt}
{txt}Income          {res}       Yes          Yes          Yes          Yes   {txt}
{txt}Regional contr~s{res}       Yes          Yes          Yes          Yes   {txt}
{txt}{hline 68}
{txt}Observations    {res}       236          236          236          236   {txt}
{txt}R$^2 p$         {res}     0.264        0.272        0.274        0.475   {txt}
{txt}AIC             {res}   283.080      282.530      283.818      228.620   {txt}
{txt}{hline 68}
{txt}Standard errors in parentheses
{txt}* p<0.1, ** p<0.05, *** p<0.01
{com}. 
. esttab using "Table\USStrict_2.tex", replace label se title(Switching Vote (alternative definition), IV - RTI, US \label {c -(}tab:rtilongstrict{c )-})mti("+Demographic" "+Offshoring" "+Skill" "All") compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(rti  female age   foreign educ offshwalt2 relskillspec t2 t3  unemployed black nonrelig) scalars( "N Observations" "r2_p R$^2 p$" "aic AIC" )  indicate( "Income = *.rincome"  "Regional controls = *.region")          
{res}{txt}(output written to {browse  `"Table\USStrict_2.tex"'})
{com}.         
. {c )-}               
. // All table summarized. 
. {c -(}
. // table A6: Switching Vote, IV - Routine (dummy), US           
. eststo clear
. // Routine Dummy
. eststo: qui logit switching2_broad task3cog2and3  female age   foreign educ i.rincome  i.region [pw=wtssnr] if year==2018, robust               
{txt}({res}est1{txt} stored)
{com}. eststo: qui logit switching2_broad task3cog2and3  female age   foreign educ i.rincome offshwalt2  i.region [pw=wtssnr] if year==2018, robust
{txt}({res}est2{txt} stored)
{com}. eststo: qui logit switching2_broad task3cog2and3  female age   foreign educ i.rincome offshwalt2 relskillspec i.region [pw=wtssnr] if year==2018, robust                
{txt}({res}est3{txt} stored)
{com}.                 
. eststo: qui logit switching2_broad task3cog2and3  female age   foreign educ i.rincome offshwalt2 relskillspec t2 t3 unemployed black nonrelig i.region [pw=wtssnr] if year==2018, robust                
{txt}({res}est4{txt} stored)
{com}. 
. esttab , replace label se title(Switching Vote, IV - Routine (dummy), US \label {c -(}tab:task3cog2and3{c )-})mti("+Demographic" "+Offshoring" "+Skill" "All") compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(task3cog2and3  female age   foreign educ offshwalt2 relskillspec t2 t3  unemployed black nonrelig) scalars( "N Observations" "r2_p R$^2 p$" "aic AIC" ) indicate( "Income = *.rincome"  "Regional controls = *.region")          
{res}
{txt}Switching Vote, IV - Routine (dummy), US \label {tab:task3cog2and3}
{txt}{hline 68}
{txt}                       (1)          (2)          (3)          (4)   
{txt}                 +Demogr~c    +Offsho~g       +Skill          All   
{txt}{hline 68}
{res}Switching broad                                                     {txt}
{txt}Routine         {res}     0.950***     0.900***     0.865***     0.873***{txt}
                {res} {ralign 9:{txt:(}0.308{txt:)}}    {ralign 9:{txt:(}0.306{txt:)}}    {ralign 9:{txt:(}0.310{txt:)}}    {ralign 9:{txt:(}0.329{txt:)}}   {txt}
{txt}Female          {res}    -0.364       -0.373       -0.359       -0.577** {txt}
                {res} {ralign 9:{txt:(}0.273{txt:)}}    {ralign 9:{txt:(}0.275{txt:)}}    {ralign 9:{txt:(}0.276{txt:)}}    {ralign 9:{txt:(}0.291{txt:)}}   {txt}
{txt}Age             {res}     0.045***     0.046***     0.048***     0.042***{txt}
                {res} {ralign 9:{txt:(}0.009{txt:)}}    {ralign 9:{txt:(}0.008{txt:)}}    {ralign 9:{txt:(}0.009{txt:)}}    {ralign 9:{txt:(}0.009{txt:)}}   {txt}
{txt}Foreign born    {res}    -1.592***    -1.562***    -1.528***    -1.590***{txt}
                {res} {ralign 9:{txt:(}0.508{txt:)}}    {ralign 9:{txt:(}0.503{txt:)}}    {ralign 9:{txt:(}0.505{txt:)}}    {ralign 9:{txt:(}0.559{txt:)}}   {txt}
{txt}Education       {res}     0.021        0.022        0.020        0.013   {txt}
                {res} {ralign 9:{txt:(}0.055{txt:)}}    {ralign 9:{txt:(}0.055{txt:)}}    {ralign 9:{txt:(}0.055{txt:)}}    {ralign 9:{txt:(}0.058{txt:)}}   {txt}
{txt}Offshorability  {res}                 -0.305       -0.326       -0.516   {txt}
                {res}              {ralign 9:{txt:(}0.261{txt:)}}    {ralign 9:{txt:(}0.269{txt:)}}    {ralign 9:{txt:(}0.335{txt:)}}   {txt}
{txt}Skill-Specific~y{res}                               0.016        0.044   {txt}
                {res}                           {ralign 9:{txt:(}0.033{txt:)}}    {ralign 9:{txt:(}0.036{txt:)}}   {txt}
{txt}Task-Tech       {res}                                           -0.482   {txt}
                {res}                                        {ralign 9:{txt:(}0.403{txt:)}}   {txt}
{txt}Task-Inter      {res}                                           -0.299   {txt}
                {res}                                        {ralign 9:{txt:(}0.396{txt:)}}   {txt}
{txt}Unemployed      {res}                                           -1.111   {txt}
                {res}                                        {ralign 9:{txt:(}0.956{txt:)}}   {txt}
{txt}Black           {res}                                           -3.861***{txt}
                {res}                                        {ralign 9:{txt:(}1.077{txt:)}}   {txt}
{txt}Non-Believer    {res}                                           -2.095***{txt}
                {res}                                        {ralign 9:{txt:(}0.509{txt:)}}   {txt}
{txt}Income          {res}       Yes          Yes          Yes          Yes   {txt}
{txt}Regional contr~s{res}       Yes          Yes          Yes          Yes   {txt}
{txt}{hline 68}
{txt}Observations    {res}       770          770          767          767   {txt}
{txt}R$^2 p$         {res}     0.150        0.153        0.155        0.264   {txt}
{txt}AIC             {res}   613.107      613.307      610.766      547.849   {txt}
{txt}{hline 68}
{txt}Standard errors in parentheses
{txt}* p<0.1, ** p<0.05, *** p<0.01
{com}. 
. esttab using "Table\USdummy_2.tex", replace label se title(Switching Vote, IV - Routine (dummy), US \label {c -(}tab:task3cog2and3{c )-})mti("+Demographic" "+Offshoring" "+Skill" "All") compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(task3cog2and3  female age   foreign educ offshwalt2 relskillspec t2 t3  unemployed black nonrelig) scalars( "N Observations" "r2_p R$^2 p$" "aic AIC" ) indicate( "Income = *.rincome"  "Regional controls = *.region")               
{res}{txt}(output written to {browse  `"Table\USdummy_2.tex"'})
{com}. 
. 
. 
. 
.         
. {c )-}
.         
. {c )-}
. {c )-}               
{txt}
{com}. *##########################################             
. * Descriptive           
. *##########################################             
. {c -(}               
.                 
. // table A1: Descriptive statistic: USA GSS 2016 vs 2012                
. {c -(}               
.         eststo clear
. 
. qui estpost sum switching2_broad   rti age  female   foreign black unemployed nonrelig rincome  region  offshwalt2 relskillspec t2 t3  [w=wtssnr] if year==2018, d              
. 
.         
. esttab ,  /// ,  ,              
>         cells("mean(label(Mean) fmt(2)) p50(label(Median) fmt(2)) sd(label(S.D.) fmt(2)) min(label(Min.) fmt(0)) max(label(Max) fmt(0)) count(label(Obs.) fmt(0))") /// 
>         nonumber label replace noobs varlabels(switching2_broad "Vote Switching" rti "RTI" age "Age" female "Female" foreign "Foreign born" black "Black" unemployed "Unemployed" nonrelig "Non-Believer" rincome "Income Level" offshwalt2 "Offshorability" relskillspec "Skill-Specificity" t2 "Task-Tech" t3 "Task-Inte") nomtitle   
{res}
{txt}{hline 98}
{txt}                             Mean       Median         S.D.         Min.          Max         Obs.
{txt}{hline 98}
{txt}Vote Switching      {res}         0.15         0.00         0.36            0            1         1468{txt}
{txt}RTI                 {res}        -0.11        -0.44         0.98           -2            2         2045{txt}
{txt}Age                 {res}        46.67        45.00        17.74           18           89         2341{txt}
{txt}Female              {res}         0.54         1.00         0.50            0            1         2348{txt}
{txt}Foreign born        {res}         0.14         0.00         0.34            0            1         2347{txt}
{txt}Black               {res}         0.15         0.00         0.36            0            1         2348{txt}
{txt}Unemployed          {res}         0.04         0.00         0.19            0            1         2348{txt}
{txt}Non-Believer        {res}         0.24         0.00         0.43            0            1         2348{txt}
{txt}Income Level        {res}        10.30        12.00         3.06            1           12         1315{txt}
{txt}region of interview {res}         5.19         5.00         2.51            1            9         2348{txt}
{txt}Offshorability      {res}         0.42         0.00         0.49            0            1         2248{txt}
{txt}Skill-Specificity   {res}         4.12         3.38         3.32            1           25         2243{txt}
{txt}Task-Tech           {res}         0.27         0.00         0.44            0            1         2248{txt}
{txt}Task-Inte           {res}         0.38         0.00         0.49            0            1         2248{txt}
{txt}{hline 98}
{com}.                 
. esttab using  "Table\summarystats_US.tex",  /// ,  ,            
>         cells("mean(label(Mean) fmt(2)) p50(label(Median) fmt(2)) sd(label(S.D.) fmt(2)) min(label(Min.) fmt(0)) max(label(Max) fmt(0)) count(label(Obs.) fmt(0))") /// 
>         nonumber label replace noobs varlabels(switching2_broad "Vote Switching" rti "RTI" age "Age" female "Female" foreign "Foreign born" black "Black" unemployed "Unemployed" nonrelig "Non-Believer" rincome "Income Level" offshwalt2 "Offshorability" relskillspec "Skill-Specificity" t2 "Task-Tech" t3 "Task-Inte") nomtitle   
{res}{txt}(output written to {browse  `"Table\summarystats_US.tex"'})
{com}. {c )-}               
. {c )-}               
{txt}
{com}. 
{txt}end of do-file

{com}. exit, clear
